package com.ggqq.factory.abstract1;

public class Client {
    public static void main(String[] args) {
        System.out.println("------------小米产品-------------");
        XiaomiFactory xiaomiFactory = new XiaomiFactory();
        IphoneProduct iphoneProduct = xiaomiFactory.iphoneProduct();
        iphoneProduct.callup();
        iphoneProduct.sendSMS();
        IrouterProduct irouterProduct = xiaomiFactory.irouterProduct();
        irouterProduct.setting();
        irouterProduct.openwifi();
        System.out.println("------------华为产品-------------");
        HuaweiFactory huaweiFactory = new HuaweiFactory();
        IphoneProduct iphoneProduct1 = huaweiFactory.iphoneProduct();
        iphoneProduct1.sendSMS();
        iphoneProduct1.start();
        IrouterProduct irouterProduct1 = huaweiFactory.irouterProduct();
        irouterProduct1.setting();
        irouterProduct1.openwifi();
    }
}
